import request from '@/utils/request'
const api_name_user = '/user'
const api_name_train = '/train'
export default {
  // 根据课程id 查询出课程的信息
  getUserAllMsg(currentPage, pageSize, searchObj) {
    return request({
      url: `${api_name_user}/getUserAllMsg/${currentPage}/${pageSize}`,
      method: 'post',
      data: searchObj
    })
  },
  //获得所有课程信息
  getTrainAllMsg(searchObj) {
    return request({
      url: `${api_name_train}/findAllTrain`,
      method: 'post',
      data: searchObj
    })
  },
}